"""
Copyright (c) 2024 [XKW.Beijing]
All rights reserved.

Author: [tangxiaojun]
Email: [417281862@qq.com]
"""

class UserResource:
    def get(self, user_id):
        return {
            "message": f"Hello, World! User ID: {user_id}"
        }

    def error_test(self):
        # 触发异常方式一：抛出异常
        raise ValueError("Something went wrong")